/*
 * @Description: 公司认证-接口
 * @Author: xinqiao lxq1990.0716@qq.com
 * @Date: 2025-04-30
 * @LastEditors: xinqiao lxq1990.0716@qq.com
 * @LastEditTime: 2025-05-06
 */

import request from '/@/api/request'

/** 分页查询公司认证列表 */
export const requestCompanyCertificationPage = (data: CompanyCertificationPageTypes.IRequest) => {
  return request.get<IPaginationResponse<CompanyCertificationPageTypes.IResponse[]>>('/business/datamarket/companyCertification/page', data)
}

/** 获取公司认证申请详情 */
export const requestCompanyCertificationDetail = (data: CompanyCertificationDetailTypes.IRequest) => {
  return request.get<IBaseResponse<CompanyCertificationDetailTypes.IResponse>>(`/business/datamarket/companyCertification/detail/${data.id}`, {})
}

/** 获取公司认证审批流程 */
export const requestGetCompanyCertificationApprovalProcess = (data: GetCompanyCertificationApprovalProcessTypes.IRequest) => {
  return request.get<IBaseResponse<GetCompanyCertificationApprovalProcessTypes.IResponse[]>>(`/business/datamarket/companyCertification/getCompanyCertificationApprovalProcess/${data.id}`, {})
}

/** 审批公司认证申请 */
export const requestCompanyCertificationApprove = (data: CompanyCertificationApproveTypes.IRequest) => {
  return request.post<IBaseResponse<CompanyCertificationApproveTypes.IResponse>>('/business/datamarket/companyCertification/approve', data)
}
